package org.interactive.spring.intro.service;

import org.interactive.spring.intro.exceptions.UserNotFoundException;
import org.interactive.spring.intro.exceptions.ValidationException;
import org.interactive.spring.intro.transport.UserTO;

import java.util.List;

/**
 * UsersService class
 *
 * @author bogdan.solga
 *
 * Date: 05.06.2013, time: 09:33
 */
public interface UsersService {
    public UserTO getByUserName(String userName) throws UserNotFoundException;

    public List<UserTO> getAllUsers(String name);

    public void save(UserTO user) throws ValidationException;
}
